package com.gz.mapper;

import com.gz.entity.Monster;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;

import java.lang.reflect.Parameter;
import java.util.List;
import java.util.Map;
import java.util.Objects;

public interface MonsterMapper {

    //通过id 或名字查询
    public List<Monster> findMonsterByNameOrId(Monster monster);

    //查询名字中含"精"的妖怪 --模糊查询
    public List<Monster> findMonsterByName(String name);

    //查询id>1并且salary大于40，要求传入的参数是Hashmap
    public List<Monster> findMonsterByIdAndSalary_ParameterHashmap(
            Map<String, Object> map);

    //返回类型是Hashmap
    public List<Map<String, Object>> findMonsterByIdAndSalary_ParameterHashmap_ReturnHashamp(
            Map<String, Object> map);
}
